#import "SearchController.h"

@interface SearchController ()
@property (nonatomic, weak) Settings* settings;
@end

@implementation SearchController

@synthesize settings;

-(void)viewDidLoad {
    [super viewDidLoad];
    for (UIViewController* viewController in self.viewControllers) {
        if ([viewController conformsToProtocol:@protocol(SettingsHolder)]) {
            id<SettingsHolder> settingHolder = (id<SettingsHolder>)viewController;
            [settingHolder setSettings:self.settings];
        }
    }
}

@end
